import {bootstrap} from "@angular/platform-browser-dynamic";
import {AppComponent} from "./app.component";
import {appRouterProviders} from "./app.routes";
import {HTTP_PROVIDERS, BaseRequestOptions, RequestOptions} from "@angular/http";
import {provide} from "@angular/core";
class MyRequestOptions extends BaseRequestOptions {
    constructor() {
        super();
        // this.headers.append('My-Custom-Header', 'MyCustomHeaderValue');
        this.headers.append('Content-Type', 'application/x-www-form-urlencoded');
    }
}
bootstrap(AppComponent, [
    appRouterProviders,
    HTTP_PROVIDERS,
    provide(RequestOptions, {useClass: MyRequestOptions})
])
// .catch(err => console.error(err));